const express = require('express')

const router = express.Router()

const checkToken = require('../../../middleware/checkToken')

const {getinfo, login, register} = require('../../../controller/user')

//用户表相关请求
router.get('/getinfo/:userId', checkToken, getinfo)

router.post('/login', login)

router.post('/register', register)


module.exports = router